<?php

// Includes obligatorios
include ('./dbconfig.php');
include ('../Libraries/Tools/JLTools.class.php');

// Objeto JLTools
$jl = new JLTools();

$SQL = "SELECT 
      `int_actualite`,
      `var_ac_title`,
      `int_vote`
    FROM 
      `tbl_actualites` WHERE int_id_section = 27";
$campoId = "int_actualite";

$jl->dataGridJSON($cnn, $SQL, $campoId);

// Cerrar la coneccion obligatorio
mysql_close($cnn);